﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.Chats
{
    public static class ChatBLL
    {
        public static int GetChatCount(IList<Condition> conditionArray)
        {
            return ChatDAL.GetChatCount(conditionArray);
        }

        public static List<ChatEntity> GetChatList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return ChatDAL.GetChatList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static List<ChatEntity> GetChatList(IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return ChatDAL.GetChatList(conditionArray, sortField, sortMode);
        }

        public static ChatEntity GetChat(int chatID)
        {
            return ChatDAL.GetChat(chatID);
        }

        public static int InsertChat(ChatEntity chat)
        {
            return ChatDAL.InsertChat(chat);
        }

        public static int UpdateChat(ChatEntity chat)
        {
            return ChatDAL.UpdateChat(chat);
        }

        public static int DeleteChat(int chatID)
        {
            return ChatDAL.DeleteChat(chatID);
        }

        public static int SetChatEnable(int chatID)
        {
            return ChatDAL.SetChatEnable(chatID);
        }

        public static int HitChat(int chatID)
        {
            return ChatDAL.HitChat(chatID);
        }
    }
}
